package com.ywb.order.controller;

import com.ywb.common.entity.Result;
import com.ywb.order.service.PaymentFeignService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.PathVariable;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

/**
 * @Author ywb
 */

@RestController
public class OrderController {
    @Resource
    private PaymentFeignService paymentFeignService;

    @GetMapping("/payment/{id}")
    public Result getPayment(@PathVariable Long id){
        return paymentFeignService.getPayment(id);
    }
}
